package net.maku.kyy.convert;

import net.maku.framework.security.user.UserDetail;
import net.maku.kyy.entity.KyyUserEntity;
import net.maku.kyy.vo.KyyUserVO;
import net.maku.kyy.vo.KyyUserExcelVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 趣趣玩用户表
 *
 * @author ice babamu@126.com
 * <a href="https://maku.net">MAKU</a>
 */
@Mapper
public interface KyyUserConvert {
    KyyUserConvert INSTANCE = Mappers.getMapper(KyyUserConvert.class);

    KyyUserEntity convert(KyyUserVO vo);

    KyyUserVO convert(KyyUserEntity entity);

    List<KyyUserVO> convertList(List<KyyUserEntity> list);

    List<KyyUserEntity> convertList2(List<KyyUserVO> list);

    List<KyyUserExcelVO> convertExcelList(List<KyyUserEntity> list);

    List<KyyUserEntity> convertExcelList2(List<KyyUserExcelVO> list);

    UserDetail convertDetail(KyyUserEntity user);
}